package com.macro.client.service;

import com.macro.mall.model.UmsMemberReceiveAddress;

import java.util.List;

/**
 * @ClassName AddressService
 * @Description 描述
 * @Author bai
 * @Date 2024/10/23 10:06
 */
public interface AddressService {

    /**
     * 地址
     * @return
     */
    List<UmsMemberReceiveAddress> list();


    /**
     * 添加地址
     * @param umsMemberReceiveAddress
     */
    void add(UmsMemberReceiveAddress umsMemberReceiveAddress);


    /**
     * 回显
     * @param id
     * @return
     */
    UmsMemberReceiveAddress find(Integer id);


    /**
     * 修改
     * @param umsMemberReceiveAddress
     */
    void update(UmsMemberReceiveAddress umsMemberReceiveAddress);

    /**
     * 删除
     * @param id
     */
    void delete(Integer id);


    /**
     * 解析
     * @param addr
     * @return
     */
    UmsMemberReceiveAddress string2Addr(String addr);
}
